package com.bestsoft.flow.service.impl;

import com.bestsoft.flow.domain.FlowOrderMt;
import com.bestsoft.flow.domain.FlowOrderMt2;
import com.bestsoft.flow.mapper.FlowOrderMtMapper;
import com.bestsoft.flow.service.IFlowOrderMtService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
/**
 * Service业务层处理
 *
 * @author 王识宇
 * @date 2023-08-39
 */
@Service
public class FlowOrderMtServiceImpl implements IFlowOrderMtService {

    @Autowired
    private FlowOrderMtMapper flowOrderMtMapper;

    /**
     * 查询用户订单汇总
     *
     * @param orderId 用户订单汇总主键
     * @return 用户订单汇总
     */
    @Override
    public FlowOrderMt selectFlowOrderMtByOrderId(Long orderId)
    {
        return flowOrderMtMapper.selectFlowOrderMtByOrderId(orderId);
    }

    /**
     * 查询用户订单汇总列表
     *
     * @param flowOrderMt 用户订单汇总
     * @return 用户订单汇总
     */
    @Override
    public List<FlowOrderMt> selectFlowOrderMtList(FlowOrderMt flowOrderMt)
    {
        return flowOrderMtMapper.selectFlowOrderMtList(flowOrderMt);
    }

    /**
     * erp查询用户订单汇总
     *
     * @param orderId 用户订单汇总主键
     * @return 用户订单汇总
     */
    @Override
    public FlowOrderMt2 selectFlowOrderMtByOrderIdErp(Long orderId)
    {
        return flowOrderMtMapper.selectFlowOrderMtByOrderIdErp(orderId);
    }

    /**
     * erp查询用户订单汇总列表
     *
     * @param flowOrderMt 用户订单汇总
     * @return 用户订单汇总
     */
    @Override
    public List<FlowOrderMt2> selectFlowOrderMtListErp(FlowOrderMt2 flowOrderMt)
    {
        return flowOrderMtMapper.selectFlowOrderMtListErp(flowOrderMt);
    }
}
